package seqlist.stack_queue;

import java.util.Stack;

/**
 * @author yuisama
 * @date 2023/03/21 19:01
 **/
public class StackTest {
    public static void main(String[] args) {
        Stack<Integer> stack = new Stack<>();
        stack.push(1);
        stack.push(3);
        stack.push(5);
        stack.push(7);
        // 7
        System.out.println(stack.pop());
        // 5
        System.out.println(stack.peek());
        // bottom [1,3,5] top
        System.out.println(stack);
    }
}